//author: create by SunJH
//时间: 2021/11/18 0018
//邮箱: 965989158@qq.com
//描述: 带点击事件的文本按钮

import 'package:flutter/material.dart';

class ClickTxt extends StatelessWidget {
   String info;
   VoidCallback onPressed;
   TextStyle? style ;
   ClickTxt(
     this.info,{
     Key? key,
     required this.onPressed,
     this.style = const TextStyle(fontSize: 20)}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return TextButton(onPressed: onPressed, child: Text(info,style: style,));
  }
}
